updated: 2022-01-23_12:32:31-05:00
Exam Prep
Pumping Lemma: HW Problems
A = {www|w \i\n {ab}*}; prove A is not regular
suppose A is regular
, |w| p
- |xy| p
- y e
- xyz L k 0
1: clear that xy are all a's
- so for k = 0 => xyz
- xy = a
- same for k = 2, p+y
Y = {w|w=x1#x2#x3...xk}
ERROR FAILURE
= {1, #}
for k 0 xi 1, xi xj for i j
let w = 1#1#1
xy is 1#1
y can be 1#
- 1#1#1#1 (fail)
y can be #
- 1##... (fail)
y can be 1#1 where g < p
- 1#1
- she's getting a bit confused here
- assumption is x is empty
- we can't assume that
- forget about it
- do w = 1^p, 1^p+1,
- then pump up, p+y will be equal to another element from 1->p
ADD = {x = y + 2 | x,y,z are all binary}
w = 10= 1
k = 0; xy^0z =>
take home hw:
(from book)
2.30:
a) {0 1 0 1 | n 0} is not a CFL
d) {t # t # ... # t | k 2, each t {a,b} and t = t for some i j}
2.33:
show that f = {a b | i = kj for some positive integer k} is not a CFL
let's do 2.33:
show that f = {a b | i = kj for some positive integer k} is not a CFL
let w = (k = p) the nested square is not the same square as on a
a = 2p * p
- |vxy|p
- vy 0
v or y contain more than one kind of symbol
let k = 2
when we repeat them, out of order:
both v & y contain a's
let k = 2
| v y | = l
l < p < 2p
2p^2+l is not a multiple of 2p
both v & y contain only b's
m = 2p^2
i < j L
V contains only a's and y contains only b's
Cover 3 conditions, same x, same y, 2 kinds of symbols